<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>汉服合作机构 - 专题大屏</title>
    <script src="../echarts.min.js"></script>
    <script src="./js/cooper-orgs-charts.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
            background: url('../1.jpg') no-repeat center center fixed;
            background-size: cover;
            color: #ffffff;
            overflow-x: hidden;
            padding: 15px;
            height: 100vh;
            box-sizing: border-box;
            background-color: transparent;
        }
        
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.1);
            z-index: -1;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 40px;
            background: rgba(255, 255, 255, 0.4);
            border: 2px solid #4A90E2;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(74, 144, 226, 0.4);
        }
        
        .header h1 {
            font-size: 28px;
            font-weight: bold;
            color: #ffffff;
            text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
            letter-spacing: 2px;
        }
        
        .header .back-button {
            padding: 10px 24px;
            background: rgba(139, 92, 246, 0.2);
            border: 1px solid rgba(139, 92, 246, 0.6);
            border-radius: 8px;
            color: #ffffff;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .header .back-button:hover {
            background: rgba(139, 92, 246, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
        }
        
        .header .back-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
            transition: all 0.5s ease;
        }
        
        .header .back-button:hover::before {
            left: 100%;
        }
        
        .time-filter {
            display: flex;
            justify-content: center;
            margin: 30px 0;
            gap: 15px;
        }
        
        .time-filter span {
            padding: 8px 24px;
            background: rgba(10, 10, 30, 0.7);
            border: 1px solid rgba(139, 92, 246, 0.4);
            border-radius: 20px;
            color: #cccccc;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            letter-spacing: 1px;
        }
        
        .time-filter span.active,
        .time-filter span:hover {
            background: rgba(139, 92, 246, 0.4);
            color: #ffffff;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
            transform: translateY(-2px);
        }
        
        .overview-section {
            margin: 0 40px 30px;
            padding: 25px;
            background: rgba(224, 210, 255, 0.9);
            border: 2px solid #4A90E2;
            border-radius: 10px;
            box-shadow: 0 3px 10px #4a90e2;
        }
        
        .overview-section p {
            font-size: 16px;
            line-height: 1.8;
            color: #e0e0e0;
            text-indent: 2em;
        }
        
        .indicators-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin: 0 40px 30px;
        }
        
        .indicator-card {
            padding: 25px;
            background: rgba(224, 210, 255, 0.9);
            border: 2px solid #4A90E2;
            border-radius: 10px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 3px 10px #4a90e2;
        }
        
        .indicator-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.6));
        }
        
        .indicator-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
            border-color: rgba(139, 92, 246, 0.6);
        }
        
        .indicator-card .title {
            font-size: 14px;
            color: #b0b0b0;
            margin-bottom: 10px;
            letter-spacing: 1px;
        }
        
        .indicator-card .value {
            font-size: 28px;
            font-weight: bold;
            color: #ffffff;
            margin-bottom: 8px;
            text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
        }
        
        .indicator-card .change {
            font-size: 12px;
            color: #00ff99;
        }
        
        .charts-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin: 0 40px 40px;
        }
        
        .chart-section {
            background: rgba(224, 210, 255, 0.9);
            border: 2px solid #4A90E2;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 3px 10px #4a90e2;
        }
        
        .chart-section h2 {
            font-size: 20px;
            margin-bottom: 20px;
            color: #ffffff;
            text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(139, 92, 246, 0.3);
            text-align: center;
        }
        
        .chart {
            width: 100%;
            height: 400px;
        }
        
        .chart-interpretation {
            margin-top: 20px;
            padding: 15px;
            background: rgba(139, 92, 246, 0.1);
            border-radius: 10px;
            border-left: 3px solid #8b5cf6;
        }
        
        .chart-interpretation p {
            font-size: 14px;
            line-height: 1.6;
            color: #e0e0e0;
            margin: 0;
        }
        
        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .fade-in-up {
            animation: fadeInUp 0.8s ease-out;
        }
        
        /* 响应式设计 */
        @media (max-width: 1400px) {
            .indicators-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .charts-container {
                grid-template-columns: 1fr;
            }
            
            .chart {
                height: 350px;
            }
        }
        
        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                gap: 15px;
                padding: 15px 20px;
            }
            
            .header h1 {
                font-size: 22px;
            }
            
            .overview-section,
            .indicators-grid,
            .charts-container {
                margin: 0 20px;
            }
            
            .indicators-grid {
                grid-template-columns: 1fr;
            }
            
            .chart {
                height: 300px;
            }
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>汉服合作机构分析</h1>
        <button class="back-button" onclick="window.location.href='../hanfu-dashboard.html'">返回主大屏</button>
    </div>
    
    <div class="time-filter">
        <span class="active" data-period="30">近30天</span>
        <span data-period="90">近90天</span>
        <span data-period="365">近1年</span>
    </div>
    
    <div class="overview-section fade-in-up">
        <p>汉服合作机构数据分析展示了汉服文化生态系统的多元化发展。当前汉服文化传播已形成了包括汉服品牌、文化社团、教育机构、博物馆、媒体平台等多方参与的合作网络。这些机构通过协同合作，共同推动汉服文化的传承、创新和普及，为汉服文化的可持续发展提供了坚实基础。</p>
    </div>
    
    <div class="indicators-grid">
        <div class="indicator-card fade-in-up" style="animation-delay: 0.1s">
            <div class="title">合作机构总数</div>
            <div class="value">156 家</div>
            <div class="change">同比增长 28.7%</div>
        </div>
        <div class="indicator-card fade-in-up" style="animation-delay: 0.2s">
            <div class="title">新增合作机构</div>
            <div class="value">24 家</div>
            <div class="change">环比增长 18.5%</div>
        </div>
        <div class="indicator-card fade-in-up" style="animation-delay: 0.3s">
            <div class="title">合作项目总数</div>
            <div class="value">432 个</div>
            <div class="change">同比增长 35.2%</div>
        </div>
        <div class="indicator-card fade-in-up" style="animation-delay: 0.4s">
            <div class="title">平均每家机构参与项目</div>
            <div class="value">2.77 个</div>
            <div class="change">同比增长 5.1%</div>
        </div>
    </div>
    
    <div class="charts-container">
        <div class="chart-section fade-in-up">
            <h2>机构类型分布</h2>
            <div id="typeDistributionChart" class="chart"></div>
            <div class="chart-interpretation">
                <p>从机构类型分布来看，汉服品牌企业占据主导地位（41.7%），表明商业实体在汉服文化传播中发挥着重要作用。文化社团组织紧随其后（30.8%），显示了民间力量对汉服文化传承的积极参与。教育科研和媒体平台虽然数量较少，但也为汉服文化的专业研究和广泛传播提供了重要支持。</p>
            </div>
        </div>
        
        <div class="chart-section fade-in-up">
            <h2>主要合作机构榜单</h2>
            <div id="topOrgsChart" class="chart"></div>
            <div class="chart-interpretation">
                <p>榜单显示，华夏汉服文化发展公司以18个合作项目位居榜首，全国汉服文化协会紧随其后。前五大机构涵盖了不同类型的组织，体现了汉服文化生态系统的多元合作模式。值得注意的是，专业研究机构如汉服研究院也表现活跃，为汉服文化的学术研究提供了重要支撑。</p>
            </div>
        </div>
    </div>
    
    <script>
        // 添加页面载入动画
        window.addEventListener('load', function() {
            const elements = document.querySelectorAll('.fade-in-up');
            elements.forEach((el, index) => {
                el.style.animationDelay = (index * 0.1) + 's';
                el.style.opacity = '1';
            });
        });
    </script>
</body>
</html>